package com.xuyuan.json.jackson.study;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@Target({ElementType.FIELD})
@JsonDeserialize(using = WrapperArraysBeanDeSerializer.class)
@JsonSerialize(using = WrapperArraysSerializer.class)
public @interface WrapArray {

    Class<?> value();

    Class<?> bindings();

    boolean hasArray() default false;

}
